package findandrepl;

import javax.swing.JDialog;
import javax.swing.JTextPane;

import textArea.AwesomeTextPanel;

/**
 * JDialog that contains Find and Replace
 * @author Ashley Polkinghorn
 *
 */
public class FindAndReplace extends JDialog{

	/**
	 * Create new F&R that searches in pane
	 * @param pane
	 */
	public FindAndReplace(JTextPane pane, AwesomeTextPanel panel)
	{
		//return showInputDialog(arg0, arg1);
		UserFindReplaceInput input = new UserFindReplaceInput(this, pane, panel);
		add(input);
		setVisible(true);
		setAlwaysOnTop(true);
		setSize(400,200);
	}
	
	
}
